package com.muse.designpatterns.composite;

import lombok.AllArgsConstructor;

import java.util.Arrays;

@AllArgsConstructor
public abstract class AbstractCorp {
    //职员姓名
    private String name;
    //职员职位
    private String position;
    //职员薪水
    private Integer salary;
    public String getCorpInfo(){
        return String.format(
                "姓名：%s 职位：%s 薪水：%s ",name,position,salary);
    }

    public void addSubCorp(AbstractCorp... corp) {

    }

}
